Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add make_slides function for creating ODP presentations from JSON. #422

Closed
wants to merge 8 commits into from

Conversation

github-actions[bot]
Copy link
Contributor

This message was generated by git-bob (version: 0.12.1dev, model: gpt-4o-2024-08-06, log), an experimental AI-based assistant. It can make mistakes and has limitations. Check its messages carefully.

In this set of changes, I've implemented a make_slides function that converts JSON-encoded descriptions into an ODP presentation. This function has been added to both _ai_github_utilities.py and _utilities.py and integrated into the solve_github_issue function, allowing users to generate slide decks from GitHub issues. Additionally, I updated requirements.txt to include the odfpy library necessary for ODP file creation and added a test in test_utilities.py to validate the functionality of the make_slides function.

closes #421

requirements.txt Outdated Show resolved Hide resolved
@haesleinhuepf
Copy link
Owner

Remove the function make_slides from _ai_github_utilities.py . Instead, put a new format_specific_instructions case into the "create_or_modify_file" function. In case the filename ends with .odp, the format_specific_instructions ensure that the output is the json-format the function make_slides expects. Describe the json format in the prompt. After the variable new_content add a new elif-block for the case that the filename ends with .odp . In this case, take the json-response and pass it to the make_slides function. Load the file from disc afterwards and save it into the new_content variable.

git-bob implement this.

… .odp files, removing make_slides from this file and ensuring json input for ODP slide creation.
…from JSON. Updated description in `solve_github_issue`.
Copy link
Contributor Author

This message was generated by git-bob (version: 0.12.1dev, model: gpt-4o-2024-08-06, log), an experimental AI-based assistant. It can make mistakes and has limitations. Check its messages carefully.

The make_slides functionality was refactored in the codebase. It was removed from _ai_github_utilities.py and reintegrated into _utilities.py where it handles ODP slide creation from JSON input. This refactoring included an update to the solve_github_issue function to manage this new implementation. Additionally, a test named test_make_slides was added to test_utilities.py to ensure the functionality of the make_slides function is validated.

@haesleinhuepf
Copy link
Owner

We cannot use odfpy because it's licensed GPL.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

New action: make_slides
1 participant